package h.a.a.k;

import h.a.a.d;
import h.a.a.e;

/* compiled from: AbstractQuery */
public abstract class a<T> {
    public final h.a.a.a<T, ?> a;
    public final e<T> b;
    public final String c;
    public final String[] d;
    public final Thread e = Thread.currentThread();

    public a(h.a.a.a<T, ?> aVar, String str, String[] strArr) {
        this.a = aVar;
        this.b = new e(aVar);
        this.c = str;
        this.d = strArr;
    }

    public static String[] b(Object[] objArr) {
        int length = objArr.length;
        String[] strArr = new String[length];
        for (int i = 0; i < length; i++) {
            Object obj = objArr[i];
            if (obj != null) {
                strArr[i] = obj.toString();
            } else {
                strArr[i] = null;
            }
        }
        return strArr;
    }

    public void a() {
        if (Thread.currentThread() != this.e) {
            throw new d("Method may be called only in owner thread, use forCurrentThread to get an instance for this thread");
        }
    }
}
